project(PluginManagerX3)
cmake_minimum_required(VERSION 2.8)

#使能c++11
#add_compile_options(-std=c++11)
set(CMAKE_CXX_STANDARD 11)
MESSAGE(STATUS "operation system is ${CMAKE_C_COMPILER}")

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/code/pkg_Core/Interface)
file(GLOB PluginManagerX3_src_list ${CMAKE_CURRENT_SOURCE_DIR}/code/pkg_Core/Modules/PluginManager/*.h;${CMAKE_CURRENT_SOURCE_DIR}/code/pkg_Core/Interface/PluginManager/*.h;${CMAKE_CURRENT_SOURCE_DIR}/code/pkg_Core/Modules/PluginManager/*.cpp)

ADD_LIBRARY(PluginManagerX3 SHARED ${PluginManagerX3_src_list};)

if(NOT WIN32)
    add_compile_options(-Wno-deprecated-declarations)
    add_compile_options(-Wno-predefined-identifier-outside-function)
else()
#防止Windows.h包含Winsock.h
	add_definitions(-DWIN32_LEAN_AND_MEAN -DMP4V2_NO_STDINT_DEFS)
    target_link_libraries(PluginManagerX3 Ws2_32.lib shlwapi)
endif()

#add_executable(rsuPtSdk  WIN32 ${ROOT};${ROOT_HEADER};${ROOT_SOURCE};)
set_target_properties(PluginManagerX3 PROPERTIES OUTPUT_NAME "PluginManagerX3")